<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改材料数据')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-type-edit" th:object="${sysMatDataType}">
            <input name="matDataId" th:field="*{matDataId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料数据名称：</label>
                <div class="col-sm-8">
                    <input name="matDataName" th:field="*{matDataName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料数据键值：</label>
                <div class="col-sm-8">
                    <input name="matDataVaule" th:field="*{matDataVaule}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料分类类型：</label>
                <div class="col-sm-8">
                    <input name="matClassificationType" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料数据类型：</label>
                <div class="col-sm-8">
                    <input name="matDataType" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料数据备注：</label>
                <div class="col-sm-8">
                    <input name="matDataRemark" th:field="*{matDataRemark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "ruoyi/data";
        $("#form-type-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-type-edit').serialize());
            }
        }

        $("input[name='matDataCreateTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>